/**
 * caicongyang.com Inc.
 * Copyright (c) 2004-2017 All Rights Reserved.
 */
package com.caicongyang.design.builder;

/**
 * 建造者模式适用于:创建复杂对象独立于对象的成部分
 *
 * @author caicongyang1
 * @version id: BuilderClientTest, v 0.1 17/5/15 下午8:46 caicongyang1 Exp $$
 */
public class BuilderClientTest {
    public static void main(String[] args) {
        Builder builder = new ConcreteBuilder();
        Director director = new Director();
        director.construct(builder);
        Product result = builder.getResult();
        result.show();


    }
}
